from django.contrib import admin
from .models import Notice

# Register your models here.
@admin.register(Notice)
class NoticeAdmin(admin.ModelAdmin):
    list_display = ['title', 'abstract', 'create_time', 'update_time']
    search_fields = ['title', 'abstract']
    list_filter = ['create_time', 'update_time']
    ordering = ['-update_time']